const token = 'tokenInfo'
const histroyList = 'histroyList'
export const setToken = tokenInfo => localStorage.setItem(token, JSON.stringify(tokenInfo))

export const getToken = () => JSON.parse(localStorage.getItem(token))

export const removeToken = () => localStorage.removeItem(token)

export const setHistroyList = histroyListInfo => localStorage.setItem(histroyList, JSON.stringify(histroyListInfo))

export const getHistroyList = () => JSON.parse(localStorage.getItem(histroyList))

export const removeHistroyList = () => localStorage.removeItem(histroyList)
